package com.aya.spring.core;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author : liushang@zsyjr.com
 * @date : 2021/7/14
 */
@Scope("prototype")
@Component
public class ReturnBean {
    @Value("${id}")
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "ReturnBean{" +
                "id='" + id + '\'' +
                '}';
    }
}
